package com.hserver.beetlsql.dao;

import com.hserver.beetlsql.bean.User;
import org.beetl.sql.core.annotatoin.Sql;
import org.beetl.sql.core.mapper.BaseMapper;
import top.hserver.core.ioc.annotation.BeetlSQL;

import java.util.List;

@BeetlSQL
public interface UserDao extends BaseMapper<User> {

    @Sql("update user set age = ? where id = ?")
    void update(Integer age,int id);

    List<User> select();
}
